<script setup lang="ts">
import YkEbsFlow from '../packages/components/YkLogicFlow/YkEbsFlow.vue'
import Comp1 from '@/components/EbsComp/Comp1'
import Comp5 from '@/components/EbsComp/Comp5'
import Comp7 from '@/components/EbsComp/Comp7'
import Comp8 from '@/components/EbsComp/Comp8'
import Comp9 from '@/components/EbsComp/Comp9'
import Comp46 from '@/components/EbsComp/Comp46'
import Comp61 from '@/components/EbsComp/Comp61'
import Comp122 from '@/components/EbsComp/Comp122'
import Comp1001 from '@/components/EbsComp/Comp1001'
import Comp1002 from '@/components/EbsComp/Comp1002'
import Comp1061 from '@/components/EbsComp/Comp1061'
import Comp11 from '@/components/EbsComp/Comp11'

const components = [
  Comp1, Comp5, Comp7, Comp8, Comp9, Comp11, Comp61, Comp46, Comp122, Comp1061, Comp1001, Comp1002
]

const stData = localStorage.getItem('EbsFlow')
let stDataObj: any = null
if (stData) {
  stDataObj = JSON.parse(stData)
}

const data = stDataObj?.modelData || {
  // 节点
  nodes: [],
  // 边
  edges: []
}
</script>

<template>
  <YkEbsFlow :components="components" :data="data"></YkEbsFlow>
</template>

<style scoped>

</style>